package io.outputstream;

import java.io.File;
import java.io.FileOutputStream;

public class Demo01 {
    public static void main(String[] args) throws Exception {
        File file = new File("F://Test//T1//b.txt");
        //FileOutputStream fileOutputStream = new FileOutputStream(file,true); 后一个为是否可追加，默认为false
        FileOutputStream fileOutputStream = new FileOutputStream(file, true);

        String s = "靳海含，请你不要再发脾气了";
        byte[] bytes = s.getBytes();

        fileOutputStream.write(bytes);
        fileOutputStream.flush();
    }
}
